import { Controller, Get, Post } from "@nestjs/common";
import { UserService } from "./user.service";
import { UserEntity } from "src/entities/user.entity";
import { ApiTags } from '@nestjs/swagger';

@ApiTags("后台用户API")
// user 这路径
@Controller('user')
export class UserController {
    constructor(private readonly userService: UserService){

    }

    @Get('list')
    findAll(): Promise<UserEntity[]>{
      return this.userService.findAll();
    }

 
}